
SOURCES = src/loader.o src/kernel.o

CFLAGS 	= -nostdlib -nostdinc -fno-builtin -nostartfiles -nodefaultlibs -m32 -I ./include
LDFLAGS = -melf_i386
ASFLAGS = -f elf

all: $(SOURCES)

clean:
	rm -rf src/*.o kernel

link:
	ld $(LDFLAGS) -T linker.ld -o kernel.bin $(SOURCES)

.s.o:
	nasm $(ASFLAGS) $<
